<nav class="navbar navbar-inverse" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">潮派元素科技</a>
        </div>
        <div>
<!--             <ul class="nav navbar-nav">-->
<!--                <li class="dropdown">-->
<!--                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
<!--                        {{current_user.name}} <b class="caret"></b>-->
<!--                    </a>-->
<!--                    <ul class="dropdown-menu">-->
<!--                        <li><a href="#">jmeter</a></li>-->
<!--                        <li><a href="#">EJB</a></li>-->
<!--                        <li><a href="#">Jasper Report</a></li>-->
<!--                        <li class="divider"></li>-->
<!--                        <li><a href="#">分离的链接</a></li>-->
<!--                    </ul>-->
<!--                </li>-->
<!--            </ul>-->
            <ul class="nav navbar-nav navbar-right">
                <li><a href="/"><span class="glyphicon glyphicon-send"></span> 前台</a></li>
                 {% if current_user.is_authenticated %}
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        {{current_user.name}}<b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a class="glyphicon glyphicon-log-out" href="/admin/logout"> 退出登录</a></li>
                    </ul>
                </li>
                {% else %}
                <li><a href="/admin/login"><span class="glyphicon glyphicon-log-in"></span> 登录</a></li>
                {% endif %}
            </ul>
        </div>
    </div>
</nav>